<?php

class Game_CONST
{
    //优雅互娱
    //公众号原始ID
    const WX_Account 			= "gh_f75ddeb30259";
    //公众号开发者ID  AppID
    const WX_Appid	 			= "wxd4f00953344bdd09";
    //公众号开发者密码 AppSecret
    const WX_AppSecret 			= "7e52ab50b77014ef985e180cd37aba7f";

    //wxpay
    const WX_Mch_ID							= "";
    const WX_Device_Info					= "WEB";
    const WX_API_Key						= "";
    const WX_Notify_Url						= "dwechat/wxauth_{dealer_num}/wxpayCallback";


    // config/database.php 对应的数据库的标识
    const DBConst_Name   	= "dealer_2";
    const Client_Name       = "217";
    const Client_Type       = "wechat";
    const PayAccount = 5;
    //游戏后端接口的域名和端口


    const WebSocket_Bull	= 'ws://aly98.girlsmxx.com:30552';          //六人牛牛
    const WebSocket_Bull9	= 'ws://aly98.girlsmxx.com:30592';          //九人牛牛
    const WebSocket_LaiBull  = 'ws://aly98.girlsmxx.com:30532';      //赖子牛牛
    const WebSocket_Bull12  = 'ws://aly98.girlsmxx.com:30522';       //十二人牛牛
    const WebSocket_Bull6B  = 'ws://aly98.girlsmxx.com:30562';       //十人牛牛
    const WebSocket_Bull8B  = 'ws://aly98.girlsmxx.com:30582';       //九人八倍

    const WebSocket_Zjh12  = 'ws://aly98.girlsmxx.com:30302';           //十二人金花
    const WebSocket_Xpjh  = 'ws://aly98.girlsmxx.com:30252';            //血战炸金花
    const WebSocket_MpZjh  = 'ws://aly98.girlsmxx.com:30242';           //明牌炸金花
    const WebSocket_Host	= 'ws://aly98.girlsmxx.com:30262';             //六人炸金花
    const WebSocket_Zjh9  = 'ws://aly98.girlsmxx.com:30292';            //九人炸金花


    const WebSocket_Landlord= 'ws://aly98.girlsmxx.com:30042';

    const WebSocket_Gdmj	= 'ws://aly98.girlsmxx.com:30052';

    const WebSocket_SG9  = 'ws://aly98.girlsmxx.com:30172';    //9人三公
    const WebSocket_SG  = 'ws://aly98.girlsmxx.com:30072';     //三公

    const WebSocket_EBA  = 'ws://aly98.girlsmxx.com:30082';

    const WebSocket_PaiJiu  = 'ws://aly98.girlsmxx.com:30192';//9人牌九
    const WebSocket_Dcx  = 'ws://aly98.girlsmxx.com:30202';//大吃小
    const WebSocket_Yxx  = 'ws://aly98.girlsmxx.com:30212';    //鱼虾蟹







    //文件和图片的存储地址
    const FileUrl  = "http://aly98.girlsmxx.com/";
    const ImageUrl =  "http://aly98.girlsmxx.com/";
    //const FileUrl  = "http://static.baiyajx.com/";
    //const ImageUrl =  "http://static.baiyajx.com/";

    const Verification_Code = "xxxxzzzz";


    //授权token
    const Wxauth_Num		= 2;
    const Is_Dist  			= 0;


    /*
        房间状态
    */
    const RoomStatus_NotStarted		= 0;	//未开始
    const RoomStatus_Playing		= 1;	//游戏进行中


    //流水账
    const JournalType_Income			= 1;	//入账
    const JournalType_Disburse			= 2;	//出账

    //流水类型
    const ObjectType_Newuser			= 1;	//新用户
    const ObjectType_Recharge			= 2;	//充值
    const ObjectType_Game				= 3;	//游戏
    const ObjectType_Dealer				= 4;	//代理商码兑换
    const ObjectType_Sign				= 5;	//签到
    const ObjectType_RedEnvelop			= 6;	//红包
    const ObjectType_Luckdraw			= 7;	//转盘
    const ObjectType_SlotMachine		= 8;	//老虎机
    const ObjectType_Commission			= 9;	//提成
    const ObjectType_BindAccount		= 10;	//绑定新账号转移房卡
    const ObjectType_Adjustment			= 11;	//代理商调整房卡
    const ObjectType_Exchange			= 12;	//房卡兑换

    const ObjectType_Manage             = 13; //管理功能

    //代理商流水类型
    const DObjectType_Balance			= 1;	//调整房卡
    const DObjectType_Recharge			= 2;	//后台充值
    const DObjectType_Sale				= 3;	//商城销售
    const DObjectType_RedEnvelop		= 4;	//房卡红包


    //红包类型
    const RedenvelopType_User			= 1;	//用户红包
    const RedenvelopType_Dealer			= 2;	//代理商红包
    const RedenvelopType_Business		= 3;	//微商红包


    //提成类型
    const CommissionType_Order 			= 1;	//订单提成
    const CommissionType_Introduce 		= 2;	//推荐提成

    const PayList = [
        ['pay_amount' => 1, 'count' => 1, 'title' => '1','desc'=>'1张房卡'],
        ['pay_amount' => 2, 'count' => 2, 'title' => '2','desc'=>'2张房卡'],
        ['pay_amount' => 3, 'count' => 3, 'title' => '3','desc'=>'3张房卡'],
        ['pay_amount' => 4, 'count' => 4, 'title' => '4','desc'=>'4张房卡'],
        ['pay_amount' => 15, 'count' =>15, 'title' => '15','desc'=>'15张房卡'],
        ['pay_amount' => 6, 'count' => 6, 'title' => '6','desc'=>'6张房卡']
    ];

}


/* End of file constants.php */
/* Location: ./application/config/constants.php */
